package homework.homework2;

/**
 * 发动机
 */
public class Engine {
    /*
        发动机编号
     */
    private int id;

    /*
        发动机类型
     */
    private String type;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return this.type;
    }
}
